package edu.mit.media.fv.components
{
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.events.*;
	public class AQCheckBox extends MovieClip
	{
		private var _isSelected:Boolean = false;
		var _checkMark:DisplayObject;
		
		public function AQCheckBox()
		{
			super();
			this.addEventListener(MouseEvent.CLICK, doSelected);
		}
		public function doSelected(event:MouseEvent):void{
			if(_isSelected){
				this.removeChild(_checkMark);
			}else{
				this.addChild(_checkMark);
			}
			_isSelected = !_isSelected;
			
		}
		public function isSelected():Boolean{
			return this._isSelected;
		}
		
	}
}